#ifndef WORKER_H
#define WORKER_H

#include <QObject>
#include <QJsonObject>
#include <QJsonArray>
#include <random>

class Worker : public QObject
{
    Q_OBJECT

public:
    explicit Worker(QObject *parent = nullptr);

protected:
    void timerEvent(QTimerEvent *event) override;

public Q_SLOTS:
    void onInitialize();
    void onDestroy();

Q_SIGNALS:
    void temperatureChanged(int temperature);

private:
    int m_temperatureId;
};

#endif // WORKER_H
